package org.neframework.webtest.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

import com.tmsps.neframework.core.utils.GenerateTools;
import com.tmsps.neframework.jpa.annotation.Id;
import com.tmsps.neframework.jpa.annotation.NotMap;
import com.tmsps.neframework.jpa.annotation.Table;
import com.tmsps.neframework.jpa.model.DbModel;

/**
 * 信用卡刷卡记录
 * 
 * @author 冯晓东 398479251
 *
 */
@Table
public class t_s_customer_card_pos implements DbModel {
	@NotMap
	private static final long serialVersionUID = 1L;
	@Id
	private String kid;
	private int status = 0;
	private Timestamp created = new Timestamp(System.currentTimeMillis());

	private String customer_id;
	private String customer_card_id;

	private String card_no;// 卡号
	private String type;// 类型:还款 or 消费
	private BigDecimal money;// 金额

	private String address;// 交易地点
	private BigDecimal rate;// 机器费率
	private BigDecimal rate_money;// 转账手续费 or 费率成本
	private BigDecimal money_remain;// 卡内余额

	private String note;// 备注

	// =========== get / set () ====================

	public String getKid() {
		return kid;
	}

	public void setKid(String kid) {
		this.kid = kid;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public String getCard_no() {
		return card_no;
	}

	public void setCard_no(String card_no) {
		this.card_no = card_no;
	}

	public String getCustomer_id() {
		return customer_id;
	}

	public void setCustomer_id(String customer_id) {
		this.customer_id = customer_id;
	}

	public String getCustomer_card_id() {
		return customer_card_id;
	}

	public void setCustomer_card_id(String customer_card_id) {
		this.customer_card_id = customer_card_id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public BigDecimal getRate_money() {
		return rate_money;
	}

	public void setRate_money(BigDecimal rate_money) {
		this.rate_money = rate_money;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public BigDecimal getRate() {
		return rate;
	}

	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

	public BigDecimal getMoney_remain() {
		return money_remain;
	}

	public void setMoney_remain(BigDecimal money_remain) {
		this.money_remain = money_remain;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public static void main(String[] args) {
		for (int i = 0; i < 100; i++) {
			System.err.println(GenerateTools.getBase58ID());
		}
	}
}
